package com.sskj.wallet.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.wallet.bean.ChongtiDetailsBean;
import com.sskj.wallet.ui.activity.ChongtiDetailsActivity;


/**
 * @author Hey
 * Create at  2019/07/10
 */
public class ChongtiDetailsPresenter extends BasePresenter<ChongtiDetailsActivity> {

    public void getChongtiDetails(String recordId, String recordType) {
        httpService.getChongtiDetails(recordId, recordType)
                .tag(this)
                .execute(new JsonCallBack<HttpData<ChongtiDetailsBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<ChongtiDetailsBean>> response) {
                        mView.getChongtiDetailsOK(response.body().getData());
                    }
                });
    }
}
